package com.zhouqinuan.spring.cloud.develop.framework.demo.apollo.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhouqinuan.spring.cloud.develop.framework.demo.apollo.mapper.UserInfoMapper;
import com.zhouqinuan.spring.cloud.develop.framework.demo.apollo.model.UserInfo;

@Service
public class UserService {

    @Autowired
    private UserInfoMapper userInfoMapper;

    public UserInfo getUserInfo(Long uid) {
        return userInfoMapper.selectByPrimaryKey(uid);
    }
}
